(function (global) {
    let vic = {};
    vic.request = function (url, data, type, callback) {
        $.ajax({
            type: type,
            url: url,
            contentType: 'application/json;charset=UTF-8',
            traditional: true,
            data: JSON.stringify(data),
            success: function (e) {
                callback(e);
            }
        })
    };
    global.myAjax = vic;
})(window);